import Vue from 'vue'
import VueRouter from 'vue-router'
// import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component:  () => import('../views/home.vue'),
    meta:{
      keep:true
    }
  },
  
  {
    path: '/publish',
    name: 'publish',  
    component: () => import('../views/publish.vue'),
    meta:{
      keep:true
    }
  },
  {
    path: '/search',
    name: 'search',  
    component: () => import('../views/search.vue'),
    meta:{
      keep:true
    }
  },
  {
    path: '/my',
    name: 'my',  
    component: () => import('../views/my.vue'),
    meta:{
      keep:true
    }
  },
  {
    path: '/reg',
    name: 'reg',  
    component: () => import('../views/reg.vue')
  },
  {
    path: '/login',
    name: 'login',  
    component: () => import('../views/login.vue')
  },
  {
    path: '/article',
    name: 'article',  
    component: () => import('../views/article.vue')
  },
  {
    path: '/userInfo',
    name: 'userInfo',  
    component: () => import('../views/userInfo/userInfo.vue'),
    meta:{
      keep:true
    }
  },
  {
    path: '/edit',
    name: 'edit',  
    component: () => import('../views/edit.vue'),

  },
  
  
]

const router = new VueRouter({
  routes
})

export default router
